import Layout from '@/layout'

const orderRouter = {
  path: '/finance',
  component: Layout,
  redirect: '',
  name: 'Finance',
  meta: {
    title: '财务管理',
    icon: '财务管理'
  },
  children: [
    {
      path: 'orderListManagement',
      component: () => import('@/views/finance/order/index'),
      name: 'OrderListManagement',
      meta: { title: '订单管理', icon: '订单管理' },
      children: [
        {
          path: 'orderList',
          component: () => import('@/views/finance/order/orderList'),
          name: 'OrderList',
          meta: { title: '订单管理', noCache: true }
        }
      ]
    },
    {
      path: 'auditListManagement',
      component: () => import('@/views/finance/withdraw/index'),
      name: 'AuditListManagement',
      meta: { title: '提现审核', icon: '提现审核' },
      children: [
        {
          path: 'auditList',
          component: () => import('@/views/finance/withdraw/auditList'),
          name: 'AuditList',
          meta: { title: '提现审核', noCache: true }
        }
      ]
    },
    {
      path: 'withdrawListManagement',
      name: 'WithdrawListManagement',
      component: () => import('@/views/finance/userwithdraw/userwithdraw'),
      meta: { title: '个人提现审核', icon: '提现审核', noChche: true }
    }
  ]
}
export default orderRouter
